console.log("type")

let n: number = 20
console.log(n)
let s1: string = "hello"
let sline: string = `sss
ddd
dddssss`
console.log(sline)

let isOk: boolean = false
let arr1: string[] = ["a", "b"]
console.log(arr1[0])

//范性
let nArr: Array<number> = [1, 2, 3]

//元组
let tupe: [string, number] = ["aaa", 123]

// enum Color {red, green, blue}
// let c: Color = Color.blue
// console.log(c)

function ty() {
    console.log("fun void")
}

ty()

function tys(): string {
    return "str111"
}

console.log(tys())

//类型判断
var s = "ssss"
console.log(typeof s == "string")

